package com.project.service.impl;

import com.project.bean.DeptBean;
import com.project.mapper.IDeptMapper;
import com.project.service.IDeptService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Service
@Transactional
public class DeptServiceImpl implements IDeptService {
    @Autowired
    private IDeptMapper mapper;

    @Override
    public List<DeptBean> findAll() {
        return mapper.findAll();
    }
}
